#pragma once

#include "../umlmodel_global.h"

#include "MessageEvent.h"

namespace uml {

/// <summary>
/// AnyReceiveEvent
/// A trigger for an AnyReceiveEvent is triggered by the receipt of any message that
/// is not explicitly handled by any related trigger.
/// </summary>
class UMLMODEL_EXPORT AnyReceiveEvent : public MessageEvent {

public: // Constructors and destructors
    explicit AnyReceiveEvent(const QString& umlType="uml::AnyReceiveEvent");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

};

} // namespace uml
